﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IPagedList<JLL.China.Model.NewsLetter>>" %>
<%@ Import Namespace="JLL.China.Web.Libraries" %>
<%@ Import Namespace="JLL.China.Model" %>
<table border="0" width="100%" cellpadding="0" cellspacing="0" class="grid" id="product-table">
            <tr>
               <%-- <th class="table-header-check">
                    <a id="toggle-all"></a>
                </th>
               --%>
                <th class="table-header-repeat line-left">
                    <a >First Name</a>
                </th> 
                
                <th class="table-header-repeat line-left">
                    <a >Last Name</a>
                </th>
                  <th class="table-header-repeat line-left">
                    <a >Email</a>
                </th>
                 <th class="table-header-repeat line-left">
                    <a >Details</a>
                </th>
               <%-- <th class="table-header-options line-left">
                    <a >Options</a>
                </th>--%>
            </tr>
            <!--  end product-table................................... -->
            <% foreach (var item in Model)
               {%>
            <tr>
               <%-- <td valign="top"  align="center">
                    <input name="selected" type="checkbox" value="<%=item.ID%>" />
                </td>--%>
                
                <td valign="top" style="padding:8px;">
                     
                 <%=item.FirstName%>                 
                </td>
               
                <td valign="top" style="padding:8px;">
                  <%=item.LastName%>   
                  
                </td>
                
                <td valign="top" style="padding:8px;">
                    <%=item.Email%>   
                </td>
                <td valign="top" style="padding:8px;">
                      <ul class="location-listing">
                        <li>Status:  <%=(item.Status.Equals(true)) ? "Subscribed" : "Unsubscribed"%></li>    
                        <li><% if (item.DateVerified != null)
                               { %>Verified on: <%= item.DateVerified %><% } %></li>    
                    </ul>  
                  
                   
                </td> 
                <%--<td class="options-width" valign="top">
                   
                  
                    
                   <div> <a href="<%=Url.Content("~/")%><%=ViewData["now_controller"]%>Step1/<%=item.ID %>"
                            title="Change status" class="info-tooltip"><img  src="<%=Url.Content("~/Content/images/")%>Star_full.png"  style="width: 25px; margin-left: 4px;"/></a>
                         </div> 
                   
                  
                    
                    
                </td>--%>
            </tr>
            <%} %>
        </table> <%-- <div id="actions-box">
        <a href="" class="iconaction icon-cog"> </a>
            <a href="" class="action-slider"></a>
            <div id="actions-box-slider">
               <a class="iconaction icon-ok-circle"/>
              <a href="<%=Url.Content("~/")%>Portal/Newsletter/<%=ViewData["Controller"]%>BulkProcess/Active"
                    title="Export to Excel" class="action-edit  info-tooltip">
                    Export to Excel </a>
            </div>
           
            <div class="clear">
            </div>
        </div>--%>
            <div style="margin-left: -228px;">
             <%Html.RenderPartial("PerPage", ViewData);%>
             </div>
         
        <!-- end actions-box........... -->
        <!--  start paging..................................................... -->
        <table border="0" cellpadding="0" cellspacing="0" id="paging-table">
            <tr>
                <td class="page-cell">
                    <div class="pager">
                        <%= Html.Pager(ViewData.Model.PageSize, ViewData.Model.PageNumber, ViewData.Model.TotalItemCount) %>
                    </div>
                </td>
                <td>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                   
                </td>
            </tr>
        </table>